export default {
  name: "Search",
  components: {},
  props: {},
  data() {
    return {
      // 搜索后的数据对象
      searchMinObj: {},
    };
  },
  watch: {},
  mounted() {},
  methods: {
    getSearchResult(obj) {
      let resultObj = {};
      if (obj.cascaderType) {
        obj.cascaderType.forEach((item) => {
          resultObj[item.field] = item.value[item.value.length - 1];
        });
      }
      if (obj.cascaderType) {
        obj.checkboxType.forEach((item) => {
          resultObj[item.field] = item.value;
        });
      }
      if (obj.cascaderType) {
        obj.inputType.forEach((item) => {
          resultObj[item.field] = item.value;
        });
      }
      return resultObj;
    },
  },
};
